package org.jeecg.modules.demo.drfAdmin.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.jeecg.modules.demo.drfAdmin.entity.DrfAdmin;
import org.jeecg.modules.demo.drfAdmin.mapper.DrfAdminMapper;
import org.jeecg.modules.demo.drfAdmin.service.IDrfAdminService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * @Description: 管理表
 * @Author: jeecg-boot
 * @Date:   2025-10-16
 * @Version: V1.0
 */
@Service
public class DrfAdminServiceImpl extends ServiceImpl<DrfAdminMapper, DrfAdmin> implements IDrfAdminService {

    @Override
    public DrfAdmin getByUserId(String userId) {
        DrfAdmin admin = this.baseMapper.selectOne(new QueryWrapper<DrfAdmin>().eq("user_id", userId));
        return admin;
    }
}
